<?php
require_once("Entity.php");
class RecipeEntity extends DBEntity {

	/** @var int,@column recipe_id,@dbType int(11) */
	var $recipeId;

	/** @var string,@column name,@dbType varchar(40) */
	var $name;

	/** @var string,@column ingredients,@dbType varchar(500) */
	var $ingredients;

	/** @var string,@column directions,@dbType varchar(2000) */
	var $directions;

	/** @var string,@column skill,@dbType varchar(1000) */
	var $skill;

	/** @var string,@column description,@dbType varchar(600) */
	var $description;

	/** @var string,@column cost_time,@dbType varchar(30) */
	var $costTime;

	/** @var int,@column difficulty,@dbType tinyint(4) */
	var $difficulty;

	/** @var string,@column tags,@dbType varchar(80) */
	var $tags;

	/** @var int,@column create_time,@dbType bigint(20) */
	var $createTime;

	/** @var int,@column update_time,@dbType bigint(20) */
	var $updateTime;

	/** @var int,@column actor_id,@dbType int(11) */
	var $actorId;

	/** @var string,@column original_url,@dbType varchar(200) */
	var $originalUrl;

	/** @var int,@column view_num,@dbType int(11) */
	var $viewNum;

	/** @var int,@column fav_num,@dbType int(11) */
	var $favNum;

	/** @var int,@column done_num,@dbType int(11) */
	var $doneNum;

	/** @var int,@column remark_num,@dbType int(11) */
	var $remarkNum;

	private static $_columnList = array(
		"recipe_id","name","ingredients","directions","skill","description","cost_time","difficulty","tags","create_time","update_time","actor_id","original_url","view_num","fav_num","done_num","remark_num",
	);

	private static $_propertyMap = array(
	"recipe_id"    => "recipeId",
	"name"    => "name",
	"ingredients"    => "ingredients",
	"directions"    => "directions",
	"skill"    => "skill",
	"description"    => "description",
	"cost_time"    => "costTime",
	"difficulty"    => "difficulty",
	"tags"    => "tags",
	"create_time"    => "createTime",
	"update_time"    => "updateTime",
	"actor_id"    => "actorId",
	"original_url"    => "originalUrl",
	"view_num"    => "viewNum",
	"fav_num"    => "favNum",
	"done_num"    => "doneNum",
	"remark_num"    => "remarkNum",
	);

	public function __construct() {
		//parent::__construct();
    }
    
    public function getTable() {
        return "recipe";
    }

	public function getColumnList() {
		return self::$_columnList;
	}

	protected function getPropertyMap() {
		return self::$_propertyMap;
	}

    public function getPrimaryKey() {
        return "recipe_id";
    }

}
?>